﻿using AVCUMPlatform.HelperLibrary;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace AVCUMPlatform.Entities
{
    /// <summary>
    /// 客户端信息
    /// </summary>
    [Table("clientinfo")]
    public class ClientInfo
    {
        /// <summary>
        /// 主键
        /// </summary>
        [PrimaryKey("Id")]
        public int Id { get; set; }
        /// <summary>
        /// 客户端平台类型 1 微信 2 钉钉 3 企业微信
        /// </summary>
        [Column("ClientType")]
        public int ClientType { get; set; }
        /// <summary>
        /// 平台AppId
        /// </summary>
        [Column("AppId")]
        public string AppId { get; set; }
        /// <summary>
        /// 平台AppSecret
        /// </summary>
        [Column("AppSecret")]
        public string AppSecret { get; set; }
        /// <summary>
        /// 客户端地址
        /// </summary>
        [Column("ClientHost")]
        public string ClientHost { get; set; }
        /// <summary>
        /// 企业微信专业 企业Id
        /// </summary>
        [Column("CorpId")]
        public string CorpId { get; set; }
        /// <summary>
        /// 验证Token
        /// </summary>
        [Column("Token")]
        public string Token { get; set; }
        /// <summary>
        /// 消息加密密钥
        /// </summary>
        [Column("AESKey")]
        public string AESKey { get; set; }
        ///// <summary>
        ///// 第一菜单名称
        ///// </summary>
        //[Column("FirstMenuName")]
        //public string FirstMenuName { get; set; }
        ///// <summary>
        ///// 审批通过提醒微信模板
        ///// </summary>
        //[Column("BookingApprove")]
        //public string BookingApprove { get; set; }
        ///// <summary>
        ///// 审批驳回提醒微信模板
        ///// </summary>
        //[Column("BookingReject")]
        //public string BookingReject { get; set; }
        ///// <summary>
        ///// 审批提醒微信模板
        ///// </summary>
        //[Column("AuditRemind")]
        //public string AuditRemind { get; set; }
        ///// <summary>
        ///// 取消提醒微信模板
        ///// </summary>
        //[Column("BookingCancel")]
        //public string BookingCancel { get; set; }
        ///// <summary>
        ///// 发送给场地管理员模板
        ///// </summary>
        //[Column("ToSiteManagerRemind")]
        //public string ToSiteManagerRemind { get; set; }
        /// <summary>
        /// 企业应用的id
        /// </summary>
        [Column("AgendId")]
        public string AgendId { get; set; }
        /// <summary>
        /// 消息来源
        /// </summary>
        [Column("Source")]
        public int Source { get; set; }
    }
}
